import Home from '@/module/home/page/home.vue';
//导入view文件
import page_list from '@/module/cms/page/page_list.vue';
import page_add from '@/module/cms/page/page_add.vue';
import page_edit from '@/module/cms/page/page_edit.vue';
import template_list from "@/module/cms/page/template_list.vue";
import template_add from "@/module/cms/page/template_add.vue";
import template_edit from "@/module/cms/page/template_edit.vue";

//配置vue页面文件访问路径
export default [{
  path: '/',
  component: Home,
  name: '内容管理',      //菜单名称
  hidden: false,            //设置是否隐藏
  children: [
    // 页面管理
    {
      path: '/cms/page/list', name: '页面管理', component: page_list, hidden: false
    },
    {
      path: '/cms/page/add', name: '新增页面', component: page_add, hidden: true
    },
    {
      path: '/cms/page/edit:pageId', name: '修改页面', component: page_edit, hidden: true
    }
    ,
    // 模板管理
    {
      path: '/cms/template/list', name: '模板管理', component: template_list, hidden: false
    },
    {
      path: '/cms/template/add', name: '新增模板', component: template_add, hidden: true
    },
    {
      path: '/cms/template/edit:templateId', name: '编辑模板', component: template_edit, hidden: true
    }


  ]
}]
